package main

import (
	"github.com/go-acme/lego/log"
	"github.com/urfave/cli"
	"httpstunnel"
	"os"
)

var (
	app = cli.NewApp()
)

func init() {
	app.Flags = []cli.Flag{
		cli.StringFlag{
			Name:  "domain",
			Usage: "domain to proxy",
			Value: "",
		},
		cli.StringFlag{
			Name: "local,l",
		},
		cli.StringFlag{
			Name:  "server,s",
			Usage: "server tcp address",
			Value: "",
		},
	}

	app.Action = httpstunnel.RunClient
}

func main() {

	err := app.Run(os.Args)
	if err != nil {
		log.Fatal(err)
	}
}
